package com.spring.boot.test.config.stragegy;

public class PayNoTableShardStrategy extends SpildFieldShardStrategy implements TableFieldShardStrategy{
    @Override
    public TableFieldEnum tableFieldEnum() {
        return TableFieldEnum.PAY_NO;
    }

    @Override
    public String getShardSuffix(String shardingValue) {
        return shardingValue.substring(shardingValue.length() - 3);
    }
}
